from django.conf.urls import url
from cmdb import views

urlpatterns = [

    url(r'^server_list/$', views.index, name='index'),
    url(r'^cmdb/server_list/', views.index),

    url(r'^server_add_page/$', views.server_add_page, name='server_add_page'),
    url(r'^server_add/$', views.server_add, name='server_add'),

    url(r'^server_edit_page/(?P<id>\d+)/$', views.server_edit_page, name='server_edit_page'),
    url(r'^server_edit/$', views.server_edit, name='server_edit'),

#    url(r'^server_detail/(?P<id>\d+)/$', views.server_detail, name='server_detail'),
    url(r'^server_delete/$', views.server_delete, name='server_delete'),

    url(r'^postmachineinfo/$', views.postmachineinfo , name='postmachineinfo'),
    url(r'^api/$', views.agent_api, name='agent_api'),
    url(r'^showapi/$', views.show_api, name='show_api'),
]